import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/icon/iconfont.css'
import './assets/scss/style.scss'
import './assets/scss/main.scss'
import './assets/scss/test.scss'
import './assets/scss/questions.scss'
import './assets/scss/user.scss'
Vue.config.productionTip = false

import http from './http'
Vue.prototype.$http = http

import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/swiper-bundle.css'
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)

Vue.mixin({
  methods: {
    getAuthHeader() {
      return {
        Authorization: `Bearer ${localStorage.token || ''}`
      }
    }
  },
})
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
